package com.hmall.common.client;


import com.hmall.common.dto.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "orderservice")
public interface OrderClient {

    @GetMapping("/order/{id}")
    Order queryOrderById(@PathVariable("id") Long orderId);

}
